<template>
  <!-- No changes to template section -->
</template>

<script>
import { ref } from 'vue';

export default {
  setup() {
    const sceneId = ref("");

    // 如果从页面传入场景ID，则使用传入的
    const onLoad = (options) => {
      if (options.sceneId) {
        sceneId.value = options.sceneId;
      } else {
        // 默认场景ID
        sceneId.value = "20250421";
      }
    };

    // 打开网页视图
    const handleOpenWebView = () => {
      uni.navigateTo({
        url: `/pages/web-view/index?url=${encodeURIComponent('https://www.kivicube.com/scenes/s4pKWuH86l8VLBrR7KoO7jRR89q5c1Xk')}`
      });
    };

    return {
      sceneId,
      onLoad,
      handleOpenWebView
    };
  }
};
</script>

<style>
  /* No changes to style section */
</style> 